//
//  ViewController.m
//  07-homeWork周末作业
//
//  Created by 402030900@qq.com on 16/7/22.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "ViewController.h"
#import "BanTangViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton * button = [UIButton buttonWithType:(UIButtonTypeSystem)];
    [button setFrame:CGRectMake(100, 100, 200, 50)];
    [button setTitle: @"pushBanTang" forState:(UIControlStateNormal)];
    button.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:button];
    [button addTarget:self action:@selector(clickPushBanTang:) forControlEvents:(UIControlEventTouchUpInside)];

    // Do any additional setup after loading the view, typically from a nib.
}
-(void)clickPushBanTang:(UIButton *)button {
    BanTangViewController * banTang = [[BanTangViewController alloc] init];
    [self presentViewController:banTang animated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
